# -*- coding: utf-8 -*-
#-----------------------------------------
# @Time       : 2020/10/23 8:49
# @Author     : dqz 
# @Email      : duanqizhong@dangdang.com
# @File       : config.py
# @Software   : PyCharm
#-----------------------------------------

import os
import sys

BASE_DIR=os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

HOMEPAGE="https://s5phub.copernicus.eu"

USERNAME="s5pguest"
PASSWORD="s5pguest"

JSON={"Content-Type": "application/json; charset=UTF-8"}
FORM={"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"}
OCTET_STREAM={"Content-Type": "application/octet-stream"}

# 开始时间
START_TIME="2020-10-03T00:00:01.000Z"
# 结束时间
END_TIME="2020-10-03T23:59:59.999Z"

# 同时多少个进程下载，每个进程下载一个
MAX_WORKS=4

# 是否多个进程执行: True or False
PARALLEL=True

# 网页上的查询url
QUERY_URL="https://s5phub.copernicus.eu/dhus/api/stub/products?filter=(%20footprint:%22Intersects(POLYGON((35.917970538139336%2047.9605023889151,49.980475902557366%2047.9605023889151,49.980475902557366%2058.27099106753269,35.917970538139336%2058.27099106753269,35.917970538139336%2047.9605023889151)))%22%20)%20AND%20(%20ingestionDate:[2020-10-02T00:00:00.000Z%20TO%202020-10-02T23:59:59.999Z%20]%20)%20AND%20(%20%20(platformname:Sentinel-5%20AND%20producttype:L2__CO____%20AND%20processinglevel:L2%20AND%20processingmode:Near%20real%20time))&offset=0&limit=25&sortedby=ingestiondate&order=desc"

# 是否未下载完成的文件再次尝试下载：True or False
RE_DOWNLOAD_UNCOMPLETE_FILE=True